<?php
//Define global system constants
defined('UPLOADS_DIR') || define('UPLOADS_DIR', ROOT_DIR.'/public/uploads');
defined('UPLOADS_URL') || define('UPLOADS_URL', BASE_URL.'/uploads');
defined('MINIFY_URL') || define('MINIFY_URL', BASE_URL.'/min');

defined('MIN_ROWS_PER_PAGE') || define('MIN_ROWS_PER_PAGE', 10);
defined('MAX_ROWS_PER_PAGE') || define('MAX_ROWS_PER_PAGE', 300);
defined('DEFAULT_ROWS_PER_PAGE') || define('DEFAULT_ROWS_PER_PAGE', 10);

defined('RETURN_ASSOC_ARRAY') || define('RETURN_ASSOC_ARRAY', 1);
defined('RETURN_KEY_VALUE_ARRAY') || define('RETURN_KEY_VALUE_ARRAY', 2);
defined('RETURN_CONCAT_STRING') || define('RETURN_CONCAT_STRING', 3);

defined('DEFAULT_USER_TOKEN_EXPIRATION') || define('DEFAULT_USER_TOKEN_EXPIRATION', 86400);
defined('USER_TOKEN_OK') || define('USER_TOKEN_OK', 1);
defined('USER_TOKEN_INVALID') || define('USER_TOKEN_INVALID', 0);
defined('USER_TOKEN_EXPIRED') || define('USER_TOKEN_EXPIRED', -1);

defined('ADMINCP_CAPTCHA_LOGIN') || define('ADMINCP_CAPTCHA_LOGIN', FALSE);

defined('FACEBOOK_APP_ID') || define('FACEBOOK_APP_ID', '427254750668346');
defined('FACEBOOK_APP_SECRET') || define('FACEBOOK_APP_SECRET', '14052a452dc4cb30eec05ecf0ce33114');

//Define cache constants
define('DEFAULT_CACHE_PREFIX', 'YII_CMS');
define('DEFAULT_SHORT_CACHE_EXPIRED', 900); //15 mins
define('DEFAULT_MEDIUM_CACHE_EXPIRED', 3600); //1 hour
define('DEFAULT_LONG_CACHE_EXPIRED', 86400); //1 day
define('DEFAULT_TIME_CACHE_EXPIRED', DEFAULT_LONG_CACHE_EXPIRED);

define ('CACHE_POST_MASTER', DEFAULT_CACHE_PREFIX.'_CACHE_POST_MASTER');
define ('CACHE_POST_LIST', DEFAULT_CACHE_PREFIX.'_CACHE_POST_LIST');
define ('CACHE_POST_DETAIL', DEFAULT_CACHE_PREFIX.'_CACHE_POST_DETAIL');

define ('CACHE_CATEGORY_MASTER', DEFAULT_CACHE_PREFIX.'_CACHE_CATEGORY_MASTER');
define ('CACHE_CATEGORY_LIST', DEFAULT_CACHE_PREFIX.'_CACHE_CATEGORY_LIST');

define ('CACHE_USERS_LIST', DEFAULT_CACHE_PREFIX.'_CACHE_USERS_LIST');
define ('CACHE_USER', DEFAULT_CACHE_PREFIX.'_CACHE_USER');

//Define message
//ERROR_USERNAME_INVALID
//ERROR_PASSWORD_INVALID
define ('MSG_ERROR_ACCOUNT_LOCKED', 'Sorry, Your account is locked!');

//Define custom constants
